package com.hotel.dao;

import com.hotel.pojo.Rooms;
import org.springframework.stereotype.Component;

import java.util.ArrayList;

@Component
public interface RoomsMapper {

    int addGuests(Rooms rooms);

    int deleteGuestsById(int id);

    int updateGuestsById(Rooms rooms);

    Rooms queryGuestsById(int id);

    ArrayList<Rooms> queryAllGuests();

    Rooms queryGuestsByPhone(String phone);
}
